Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: remove curl factory override #86

Merged
merged 1 commit into from
Oct 26, 2023
Merged

Conversation

shavounet
Copy link
Contributor

@shavounet shavounet commented Oct 13, 2023

Why?

The curlInfo dynamic property is deprecated in PHP8.2.
To fetch the same data use the native on_stat option

How?

Removed all trace of the curl factory. This will imply a new major version

Copy link
Member

@Oliboy50 Oliboy50 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤷

public function release(EasyHandle $easy): void
{
if (!is_null($easy->response)) {
$easy->response->curlInfo = curl_getinfo($easy->handle);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this info wasn't used/displayed in the data collector (i.e. Symfony devtools)?

(just asking to make sure we didn't miss something)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As the property doesn't exist any more , I strongly doubt so... but I can try to have a look.
Looking far into guzzlehttp/psr7 (up to 2015), it was never a property

@shavounet shavounet force-pushed the feat/mark-deprecations-v5 branch from 0e1d89a to 49a3e11 Compare October 13, 2023 08:06
@shavounet shavounet force-pushed the feat/remove-curl-factory branch 4 times, most recently from dc8cc70 to a9314b8 Compare October 13, 2023 08:32
@shavounet shavounet marked this pull request as ready for review October 13, 2023 08:40
@shavounet shavounet requested a review from a team as a code owner October 13, 2023 08:40
@shavounet shavounet force-pushed the feat/remove-curl-factory branch 2 times, most recently from d820759 to 0126cff Compare October 13, 2023 08:57
@shavounet shavounet changed the base branch from feat/mark-deprecations-v5 to update/dependencies October 13, 2023 08:59
@shavounet shavounet force-pushed the update/dependencies branch from c5ab44a to f61b4bc Compare October 26, 2023 09:19
Base automatically changed from update/dependencies to master October 26, 2023 09:23
@shavounet shavounet force-pushed the feat/remove-curl-factory branch from 0126cff to 0c247de Compare October 26, 2023 09:24
@shavounet shavounet merged commit 9c0b98c into master Oct 26, 2023
10 checks passed
@shavounet shavounet deleted the feat/remove-curl-factory branch October 26, 2023 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants